﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;


namespace condortravel.operaciones.common
{
    public class AppStatic
    {

        public static readonly string REGISTRO_CLAVE = "KeyRegeditApp";
        public static readonly string CONNECTION_REGEDIT_CONDORTOPERACIONES = "CadenaConexionCondorTOperaciones";
        
        public static readonly string CONNECTION_REGEDIT_CONDORTOPERACIONES_IMPERSONATE = "CadenaImpersonateCondorTOperaciones";



        public static readonly string REGISTRO_CLAVE_EVOLUTILITY = "SQLConnection";
        //Session's name of Authentication
        public static readonly string SESSION_USERAUTHENTICATED = "UserAuthenticated";
        public static readonly string SESSION_ISUSERAUTHENTICATED = "IsUserAuthenticated";

        //Variable
        public static readonly string VAR_ACTIVE = "Active";
        public static readonly string VAR_INACTIVE = "Inactive";
        public static readonly string VAR_YES = "Yes";
        public static readonly string VAR_NO = "No";
        public static readonly string FL_ACT = "1";
        public static readonly string FL_INACT = "0";
        public static readonly string FL_Y = "Y";
        public static readonly string FL_N = "N";

        //Variable of ProfileField

        public static readonly long VAR_PF_ADDRESS = (ConfigurationManager.AppSettings["VAR_PF_ADDRESS"]==null)?0:long.Parse(ConfigurationManager.AppSettings["VAR_PF_ADDRESS"]);//3;
        public static readonly long VAR_PF_TITLE = (ConfigurationManager.AppSettings["VAR_PF_TITLE"] == null) ? 0 : long.Parse(ConfigurationManager.AppSettings["VAR_PF_TITLE"]);//1;
        public static readonly long VAR_PF_DEPARTMENT = (ConfigurationManager.AppSettings["VAR_PF_DEPARTMENT"] == null) ? 0 : long.Parse(ConfigurationManager.AppSettings["VAR_PF_DEPARTMENT"]);//2;
        public static readonly long VAR_PF_MANAGER = (ConfigurationManager.AppSettings["VAR_PF_MANAGER"] == null) ? 0 : long.Parse(ConfigurationManager.AppSettings["VAR_PF_MANAGER"]);//5001;
        //HD:20110429 - this field is no't used
        //public static readonly long VAR_PF_TRANSIT = (ConfigurationManager.AppSettings["VAR_PF_TRANSIT"] == null) ? 0 : long.Parse(ConfigurationManager.AppSettings["VAR_PF_TRANSIT"]); //5030;
        //HD:20110429 - this field is no't used
        public static readonly long VAR_PF_EMPLOYEEID = (ConfigurationManager.AppSettings["VAR_PF_EMPLOYEEID"] == null) ? 0 : long.Parse(ConfigurationManager.AppSettings["VAR_PF_EMPLOYEEID"]);//5011;
        public static readonly long VAR_PF_PHONE = (ConfigurationManager.AppSettings["VAR_PF_PHONE"] == null) ? 0 : long.Parse(ConfigurationManager.AppSettings["VAR_PF_PHONE"]); //4;
        public static readonly long VAR_PF_COUNTRY = (ConfigurationManager.AppSettings["VAR_PF_COUNTRY"] == null) ? 0 : long.Parse(ConfigurationManager.AppSettings["VAR_PF_COUNTRY"]); //5021;

        //branch
        public static readonly string VAR_BRANCH = "BRANCH";

        //Popup
        public static readonly string POPUP_ABRIR = "CargarDialogo_{0}";
        public static readonly string  POPUP_CERRAR  = "CerrarDialogo_{0}()";
    public static readonly string POPUP_PARAMETRO_POPUPID  = "popupID";

        //Issues 

    public static readonly string ISSUE_00 = "ISSUE_00";
    public static readonly string ISSUE_01 = "ISSUE_01";
    public static readonly string ISSUE_02 = "ISSUE_02";
    public static readonly string ISSUE_03 = "ISSUE_03";
    public static readonly string ISSUE_04 = "ISSUE_04";
    public static readonly string ISSUE_05 = "ISSUE_05";
    public static readonly string ISSUE_06 = "ISSUE_06";
    public static readonly string ISSUE_07 = "ISSUE_07";
    public static readonly string ISSUE_08 = "ISSUE_08";
    public static readonly string ISSUE_09 = "ISSUE_09";
    public static readonly string ISSUE_10 = "ISSUE_10";
    public static readonly string ISSUE_11 = "ISSUE_11";
    public static readonly string ISSUE_12 = "ISSUE_12";
    public static readonly string ISSUE_13 = "ISSUE_13";
    public static readonly string ISSUE_14 = "ISSUE_14";
    public static readonly string ISSUE_15 = "ISSUE_15";
    public static readonly string ISSUE_CHARACTER_SPECIAL = "ISSUE_CHARACTER_SPECIAL";

    //Process File
    public static readonly string VAR_FM_INITIALSTATUSLOAD = ConfigurationManager.AppSettings["VAR_FM_INITIALSTATUSLOAD"];
    public static readonly string VAR_FM_STATUSPROCCESEDOK = ConfigurationManager.AppSettings["VAR_FM_STATUSPROCESSDOK"];
    public static readonly string VAR_FM_STATUSINPROCESS = ConfigurationManager.AppSettings["VAR_FM_STATUSINPROCESS"];
    public static readonly string VAR_FM_STATUSPROCCESEDNOOK = ConfigurationManager.AppSettings["VAR_FM_STATUSPROCCESEDNOOK"];

    //Operaciones
    public static readonly int VAR_OPE_ESTADO_PENDIENTE = 100;
    public static readonly int VAR_OPE_ESTADO_EJECUCION = 101;
    public static readonly int VAR_OPE_ESTADO_ITINERARIO_PENDIENTE = 100;
    public static readonly int VAR_OPE_ESTADO_EVENTO_FINALIZADO = 103;
    public static readonly int VAR_OPE_EStADO_ITINERARIO_FINALIZADO = 102;
    public static readonly int VAR_OPE_EStADO_ITINERARIO_ENEJECUCION = 101;

    public static readonly int VAR_OPE_ESTADO_PROGRAMACION_EJECUCIONFA= 102;
    public static readonly int VAR_OPE_ESTADO_PROGRAMACION_EJECUCIONOK = 101;
    public static readonly int VAR_OPE_ESTADO_PROGRAMACION_FINALIZADO = 103;   

    //Incidencias
    public static readonly int VAR_INCIDENTE_ESTADO_EJECUCION = 200;
    public static readonly int VAR_INCIDENTE_ESTADO_ATENDIDO = 300;
    public static readonly int VAR_INCIDENTE_ESTADO_PENDIENTE = 100;

    public AppStatic()
    { 
    
    
    }

    }
}
